package com.entity.view;

import com.baomidou.mybatisplus.annotations.TableName;
import com.entity.ChanpinchoujianEntity;
import org.apache.commons.beanutils.BeanUtils;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
@TableName("chanpinchoujian")
public class ChanpinchoujianView extends ChanpinchoujianEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    public ChanpinchoujianView(){
    }

    public ChanpinchoujianView(ChanpinchoujianEntity chanpinchoujianEntity){
        try {
            BeanUtils.copyProperties(this, chanpinchoujianEntity);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}
